package com.hemerasolutions.v2trainer.model.exercise.executions;

import java.io.Serializable;


import javax.persistence.Embeddable;

@Embeddable
public class AssociationETPK implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private int executionId;
	 
	private int trainingTypeId;

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public int getExecutionId() {
		return executionId;
	}

	public int getTrainingTypeId() {
		return trainingTypeId;
	}

	public void setExecutionId(int executionId) {
		this.executionId = executionId;
	}

	public void setTrainingTypeId(int trainingTypeId) {
		this.trainingTypeId = trainingTypeId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + executionId;
		result = prime * result + trainingTypeId;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AssociationETPK other = (AssociationETPK) obj;
		if (executionId != other.executionId)
			return false;
		if (trainingTypeId != other.trainingTypeId)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "AssociationETPK [executionId=" + executionId
				+ ", trainingTypeId=" + trainingTypeId + "]";
	}
	
	

}
